package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@ApiModel(value = "会员信息表o")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_user_info")
public class UserInfo extends BaseEntity {
    /**
     * 姓名
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 性别(0女,1男,2,其他)
     */
    @TableField(value = "sex")
    @ApiModelProperty(value = "性别(0女,1男,2,其他)")
    private Byte sex;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**
     * 地区
     */
    @TableField(value = "area")
    @ApiModelProperty(value = "地区")
    private String area;

    /**
     * 地址
     */
    @TableField(value = "addr")
    @ApiModelProperty(value = "地址")
    private String addr;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 生日
     */
    @TableField(value = "birthday")
    @ApiModelProperty(value = "生日")
    private Date birthday;

    /**
     * 注册ip
     */
    @TableField(value = "reg_ip")
    @ApiModelProperty(value = "注册ip")
    private String regIp;

    /**
     * 注册时间
     */
    @TableField(value = "reg_time")
    @ApiModelProperty(value = "注册时间")
    private Date regTime;

    /**
     * 状态(0:启用,1:禁用)
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态(0:启用,1:禁用)")
    private Byte status;

    /**
     * 会员等级
     */
    @TableField(value = "level_id")
    @ApiModelProperty(value = "会员等级")
    private Integer levelId;

    /**
     * 经验值
     */
    @TableField(value = "experience")
    @ApiModelProperty(value = "经验值")
    private Long experience;

    /**
     * 备注
     */
    @TableField(value = "note")
    @ApiModelProperty(value = "备注")
    private String note;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_SEX = "sex";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_AREA = "area";

    public static final String COL_ADDR = "addr";

    public static final String COL_PHONE = "phone";

    public static final String COL_EMAIL = "email";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_REG_IP = "reg_ip";

    public static final String COL_REG_TIME = "reg_time";

    public static final String COL_STATUS = "status";

    public static final String COL_LEVEL_ID = "level_id";

    public static final String COL_EXPERIENCE = "experience";

    public static final String COL_NOTE = "note";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}